import request from '@/utils/request'

/**
 * 获取角色列表
 */
export function getRoleListApi(params) {
  return request({
    url: '/get_all_users',
    method: 'get',
    params
  })
}
// 登录接口
export function loginApi(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
export function addGys(data) {
  return request({
    url: '/sys/user/addGys',
    method: 'post',
    data
  })
}
/**
 * 退出登录
 * @returns 
 */
export function logoutApi() {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}

/**
 * 获取用户信息
 */
export function getUserInfoApi() {
  return request({
    url: `/auth/info`,
    method: 'get',
  })
} 
